package com.pkx.guide.fcms.selector;

import com.pkx.guide.fcms.service.FcmsPlayItemService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
public class FcmsPlayItemSelector {

    @Resource
    private Map<String, FcmsPlayItemService> playItemSelectorMap;

    /**
     * 根据类型选择对应的策略
     *
     * @param type 统计周期类型
     * @return 统计抽象策略处理器
     */
    public FcmsPlayItemService select(String type) {
        return playItemSelectorMap.get(type);
    }
}
